import java.util.Scanner;

public class Num8 {
    public static void main(String[] args) {
        int a = 1;
        int max = 0;
        for (a = 1; a <= 10; a++) {
            System.out.println("请输入第" + a + "个数");
            Scanner input = new Scanner(System.in);
            int b = input.nextInt();
            max = b > a ? b : a;


        }
        System.out.println("max=" + max);

    }
}
